﻿using System.Windows.Forms;

namespace QWManage.Excel
{
    public class ColumnInfo
    {
        public string Name { set; get; }

        public ColumnType Type { set; get; }

        public int Index { set; get; }

        public ColumnInfo(ListView lv, string name, ColumnType type)
        {
            Name = name;
            Type = type;
            Index = lv.Columns[name].Index;
        }
    }

    public enum ColumnType
    {
        String,
        Decimal,
        Int,
        Percent
    }
}
